<me:VBPRULES x:Class="WPFExcelReport.TVKRULES"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"   
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                      x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:VBPRULES.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:VBPRULES.Resources>
    <StackPanel>
        <WrapPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=交期}}"></TextBlock>
                <TextBox Grid.Column="1"   Text="{Binding Path=DELDATE}" Width="100"></TextBox>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=订单量}}"></TextBlock>
                <TextBox Grid.Column="1"  Text="{Binding Path=QTYEND}" LostFocus="QTY_LostFocus" Width="80"></TextBox>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=交货范围%}}"></TextBlock>
                <TextBox Grid.Column="1"  
                         Text="{Binding R01}"
                         LostFocus="QTY_LostFocus"
                          Height="20" VerticalAlignment="Top"></TextBox>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=增投+}}"></TextBlock>
                <TextBox Grid.Column="1" 
                         Text="{Binding F01}"
                         LostFocus="QTY_LostFocus"
                          Width="60"></TextBox>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=库存-}}"></TextBlock>
                <TextBox Grid.Column="1" 
                         Text="{Binding F02}"
                         LostFocus="QTY_LostFocus"
                          Width="60"></TextBox>
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=批号}}"></TextBlock>
                <TextBox Grid.Column="1" Text="{Binding REMARK,Converter={StaticResource gb2312}}"  
                         MaxLength="10"  Width="120"></TextBox>
            </Grid> 
        </WrapPanel>
    </StackPanel>
</me:VBPRULES>
